<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <h1>第一个页面</h1>
    <ul>
        <li v-for="name in arr" @click="show(name)">{{name}}</li>
    </ul>
</div>
<!--引入Vue和axios-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script src="js/v.js"></script>
<script>
    let v = new Vue({
        el:"div",
        data:{
            arr:["刘备","关羽","张飞"]
        },
        methods:{
            show:function (name){
                alert(name);
            }
        }
    })
</script>
</body>
</html>